<?php 
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>

<?php 
$form  = ActiveForm::begin([
		
		//'method'=>'get',//默认是post
		'enableClientScript'=>TRUE,
		'options'=>[
			'enctype'=>'multipart/form-data',
			'class'=>'form-horizontal'
		],
		'fieldConfig'=>[
			'template'=>'{label}<div class="col-sm-9">{input}{hint}<span class="help-inline col-xs-12 col-sm-7">{error}</span></div>',
			'labelOptions'=>['class'=>'col-sm-3 control-label no-padding-right'],
			'inputOptions'=>['class'=>'col-xs-10 col-sm-2'],
			'errorOptions'=>['class'=>'help-block middle']
		]		
]);
?>
<?= $form->field($model,'billcode')->textinput()?>
<?= $form->field($model,'supplierid') ?>
<?= $form->field($model,'merchandiseid') ?>
<?= $form->field($model,'intype') ?>
<?= $form->field($model,'handler') ?>
<?= $form->field($model,'num') ?>
<?= $form->field($model,'price') ?>
<?= $form->field($model,'totalmoney') ?>
<?= $form->field($model,'remark') ?>
<label class="col-sm-3 control-label no-padding-right" for="testform-age"></label>

<?= Html::submitButton('提交',[
		'class'=>'btn btn-danger'
		
]) ?>
&nbsp;&nbsp;&nbsp;&nbsp;
<?= Html::resetButton('重置',[
		'class'=>'btn btn-danger'
])?>
<?php 
ActiveForm::end();
?>